DMelt:General/2 Running DMelt

From HandWiki
Member

Running DataMelt

DataMelt (DMelt) can be used in a GUI mode, or in a batch mode.

Launching the IDE

You can run DMelt using several approaches. Launch the DMelt IDE as:

For Linux / Mac OS:

If you use "bash" for the console, type:

bash> dmelt.sh


On Mac, it is very common to type "bash" first.

For Windows:

Run (double click) the file "dmelt.bat"

For small-screen computers, you can run dmelt_porto.sh (Linux/Mac) or dmelt_porto.bat (Windows). You can also run the DMelt without execution scripts as this:

java -jar dmelt.jar


Read section DMelt IDE about how to work with the DMelt IDE.

Executing scripts

One can execute scripts without launching the DMelt IDE. Your script should have the correct file extension:

  • ".py" - for Jython scripts
  • ".goovy" - for Groovy scripts
  • ".rb" - for JRuby scripts
  • ".bsh" - for BeanShell scripts
  • ".java" - for Java files
  • ".m" - for Octave files

Here are examples:

dmelt_batch.sh file.py        # to launch Jython/Python script
dmelt_batch.sh file.groovy # to launch Groovy script
dmelt_batch.sh file.rb         # to launch JRuby/Ruby script
dmelt_batch.sh file.bsh      # to launch BeanShell script
dmelt_batch.sh file.java     # to launch Java code
dmelt_batch.sh file.m        # to launch Octave script

Similarly, use dmelt_batch.bat for Windows.

DMelt can run programs using different programming languages but using same API for numeric calculations. Look at Using scripts.